local chengxu = fk.CreateSkill {
  name = "chengxu",
  tags={Skill.Compulsory}
}

chengxu:addEffect(fk.AfterCardUseDeclared, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(self) and data.card.type ~= Card.TypeEquip and
      table.find(player.room:getOtherPlayers(player, false), function(p) return p.kingdom == player.kingdom end)
  end,
  on_use = function(self, event, target, player, data)
    data.disresponsiveList = data.disresponsiveList or {}
    for _, p in ipairs(player.room:getOtherPlayers(player, false)) do
      if p.kingdom == player.kingdom then
        table.insertIfNeed(data.disresponsiveList, p)
      end
    end
  end,
})

return chengxu